
<%
	// Only display dashboard controls if a user is logged in.
	String username = (String) session.getAttribute("logged_user");
	String user_type = (String) session.getAttribute("user_type");

	if (username != null) {
		out.println("<div class=\"margin-5px\">");
		if (user_type.equals("2")) {
			// Dashboard for customers.
			out.println("<h2>Customer Controls</h2><hr></hr>");
			out.println("<a href=\"view_items.jsp\">View Item Selection</a><br />");
			out.println("<a href=\"edit_profile.jsp\">Edit Profile</a><br />");
			out.println("<a href=\"customer_view_myauctions.jsp\">My Bid History</a><br/>");
			out.println("<a href=\"best_sellers.jsp\">Get Best-Sellers List</a><br />");
			out.println("<a href=\"recommended_items.jsp\">Get Recommended Items</a><br />");
			out.println("<a href=\"find_user.jsp\">Find A User</a><br />");
			// Show suggestion list
			// show best seller list
			// View seller's profile by clicking their link
			// allow search bar to search for customers
			// allow search by type
		} else {
			// Dashboard for employees.
			out.println("<h2>Employee Controls</h2><hr></hr>");
			out.println("<a href=\"view_items.jsp\">View Item Selection</a><br />");
			out.println("<a href=\"Record_Sales.jsp\">Record Sales</a><br />");
			out.println("<a href=\"manage_customers.jsp\">Manage Customers</a><br />");
			out.println("<a href=\"get_recommendations.jsp\">Get Recommendations For A Customer</a><br />");
			out.println("<a href=\"customer_mailing_list.jsp\">Get Customer Mailing List</a><br />");
			out.println("<a href=\"view_employees.jsp\">View Employee List</a><br />");
			out.println("<a href=\"edit_profile.jsp\">Edit Profile</a><br />");
			out.println("<a href=\"find_user.jsp\">Find A User</a><br />");
			if (user_type.equals("0")) {
				// Additional controls for managers.
				out.println("<h2>Administrative Controls</h2><hr></hr>");
				out.println("<a href=\"view_sales_report.jsp\">View Sales Reports</a><br />");
				//out.println("<a href=\"view_items.jsp\">View Item Selection</a><br />");
				//out.println("<a href=\"#\">View Sales By Item Or Customer Name</a><br />");
				//out.println("<a href=\"#\">View Revenue Generated By An Item, Item Type, Or Customer</a><br />");
				out.println("<a href=\"rank_employees.jsp\">View Revenue Generated By Employees</a><br />");
				out.println("<a href=\"rank_customers.jsp\">View Revenue Generated By Customers</a><br />");
				out.println("<a href=\"best_sellers.jsp\">Get Best-Sellers List</a><br />");
				out.println("<a href=\"manage_employees.jsp\">Manage Employees</a><br />");
				out.println("<a href=\"backup_sql.jsp\">Backup Databases</a><br />");
			}
		}
		out.println("</div>");
	} else {
		out.println("<div class=\"center-text\"><img src=\"images/mascot.png\" alt=\"Mascot\" height=\"427\" width=\"401\" align=\"middle\"></div>");
	}
%>